Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly handle frozen strings #107

Merged
merged 4 commits into from
Jan 24, 2022
Merged

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Jan 21, 2022

This rewrites the ACL parsing in the type.

First of all, it renames variables from a single letter to multiple so it properly describes what they are.

It also fixes the octal parsing, which always resulted in rwx.

More importantly, it fixes the frozen string behavior. It does this by using += instead of << and avoiding sub!.

Fixes: a252009

@ekohl ekohl force-pushed the fix-acl-parsing branch 3 times, most recently from 6c32a3d to f6bf772 Compare January 21, 2022 17:45
ekohl and others added 3 commits January 21, 2022 18:52
This rewrites the ACL parsing in the type.

First of all, it renames variables from a single letter to multiple so
it properly describes what they are.

It also fixes the octal parsing, which always resulted in rwx.

More importantly, it fixes the frozen string behavior. It does this by
using += instead of << and avoiding sub!.

Fixes: a252009
@ekohl
Copy link
Member Author

ekohl commented Jan 21, 2022

This is now green. I could actually reproduce once issue with frozen strings in unit tests, see the second commit. I mostly added that as a regression test before I made bigger changes and there it did show up. Still, it was very subtle and my proper fix gets rid of much more problematic code.

@bastelfreak bastelfreak added the bug Something isn't working label Jan 21, 2022
@bastelfreak
Copy link
Member

tested this locally and works fine.

@bastelfreak bastelfreak merged commit 3b091f7 into voxpupuli:master Jan 24, 2022
@ekohl ekohl deleted the fix-acl-parsing branch January 24, 2022 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants